package lhdx5;

import java.util.Scanner;

public class Zfc {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        String[] a=new String[15];
        System.out.println("输入数组数据：");
        for (int i=0;i<a.length;i++){
            String A=in.next();
            a[i]=A;
        }
        System.out.println("输入需要删除的字符串");
        for (int i=0;i<a.length;i++){
            String B=in.next();
            if (a[i].equals(B)){
                for (int j=i;j<a.length;j++){
                    a[j]=a[j+1];
                }
                a[a.length-1]=null;
                return;
            }

        }
        System.out.println("未找到！");
    }
}
